import React, { memo } from "react";
import MySwiper from "../components/MySwiper";
import {useNavigate} from "react-router-dom"
const Home = memo(() => {
  const navigate = useNavigate()

  return (
    <div>
      <MySwiper></MySwiper>
      <div className="tab">
        <span onClick={()=>navigate("/todo?index=0")}>到店自取</span>
        <span onClick={()=>navigate("/todo?index=1")}>外卖配送</span>
      </div>
    </div>
  );
});

export default Home;
